package com.lanou.dllo.soccernews.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.lanou.dllo.soccernews.R;

/**
 * Created by dllo on 15/11/5.
 */
public class LoginAndRegist extends AppCompatActivity implements View.OnClickListener {
private Button regist,login;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_loginandregist);

        regist = (Button) findViewById(R.id.ll_regist);
        login = (Button) findViewById(R.id.ll_login);

        regist.setOnClickListener(this);
        login.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.ll_regist:
                Intent  registIntent = new Intent(this, RegisterActivity.class);
                startActivity(registIntent);
                break;

            case R.id.ll_login:

                Intent loginIntent = new Intent(this, LoginActivity.class);
                startActivity(loginIntent);

                break;
        }
    }
}
